<?
/*! \brief Represents an OpenBT slave node
 * 
 */
class Slave extends Node
{	
	public function __construct($addr=null)
	{
		parent::__construct($addr);
	}
	
	public function getLoad()
	{
		if($this->_addr == HOST_NAME)
			return $this->getLocalLoad();
		else
			return $this->getRemoteLoad();
	}
	
	public function getLocalLoad()
	{
		$load = exec('/opt/local/bin/load.sh');
		return $load;
	}
}